Working With Media Samples
The Movie Toolbox provides a number of functions that allow applications to determine information about a movie's sample data. This section discusses these functions. Refer to "Adding Samples to Media Structures" beginning on page 2-254 for information about functions that allow you to retrieve sample data from a media.Your application can use the
GetMovieDataSize
,GetTrackDataSize
, andGetMediaDataSize
functions to determine the size, in bytes, of the data stored in a media, movie, or track.You can use the
GetMediaSampleDescriptionCount
andGetMediaSampleDescription
functions to retrieve a media's sample descriptions. TheSetMediaSampleDescription
function enables you to change the contents of a particular sample description associated with a media. TheGetMediaSampleCount
function determines the number of samples in a media. TheSampleNumToMediaTime
andMediaTimeToSampleNum
functions allow you to convert from a time value to a sample number and vice versa. You can use the functions described in "Finding Interesting Times" beginning on page 2-180 to locate specific samples in a media.
Subtopics
- GetMovieDataSize
- GetTrackDataSize
- GetMediaDataSize
- GetMediaSampleCount
- GetMediaSampleDescriptionCount
- GetMediaSampleDescription
- SetMediaSampleDescription
- MediaTimeToSampleNum
- SampleNumToMediaTime